<%@page import="Board.BoardVo"%>
<%@page import="Board.BoardMyba"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script>
function init(part){
	location.href = "index.jsp?inc_content=./board/board_list.jsp&bo_part="+part+"&nowPage=" + 1;
}
</script>
</head>
<body>
	<jsp:useBean id="boardVo" class="Board.BoardVo" />
	<jsp:setProperty property="*" name="boardVo" />
	<%
	String uploadPath;
	
	boardVo.setRequest(request);
	String part = request.getParameter("bo_part");
	boardVo.setBo_no(request.getParameter("bo_no"));
	BoardMyba board = new BoardMyba();
	board.setUploadPath(request.getSession().getServletContext().getRealPath("/"));
	board.setUploadPath(board.getUploadPath());
	
	/*System.out.print("실제 경로 : "+board.getUploadPath());*/
	
	
	board.setVo(boardVo);
	%>
	<%if(board.modify()){ %>
	<input type = 'hidden' value = 'bo_no'>
		<h3>성공</h3>
		<script>
		
		init("<%=boardVo.getBo_part()%>");
		
		</script>
	<%}else{ %>
		<h3>실패</h3>
	<%} %>
</body>
</html>